﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Infrastructure;
using DormMS.Model;
using DormMS.Model.SearchModels;
using DormMS.Model.ViewModels;

namespace DormMS.IService
{
    public interface ISpecService
    {
        List<Product_SpecType> SpecTypeManage(BaseSearchModel search, out int total);

        Result SpecTypeEdit(Product_SpecType specType,int currentUserId);

        Result DelSpecType(int Id, int currentUserId);

        List<SpecTemplateViewModel> SpecTemplateManage(SpecTemplateSearchModel search, out int total);

        List<Product_SpecType> GetSpecTypeList();

        Result SpecTemplateEdit(Product_SpecTemplate specTemplate, int currentUserId);

        Result DelSpecTemplate(int Id, int currentUserId);

        Result SaveSpecTemplateItem(int TemplateId, string TempItems,int currentUserId);

        void AddSpecItem(Product_SpecTemplateItem entity);
    }
}
